package org.msn.util;

import io.netty.channel.ChannelHandlerContext;
import org.msn.rest.RestResult;

public class RequestUtil {
    public synchronized static void sendRequest(ChannelHandlerContext ctx, RestResult restResult) {
        ctx.writeAndFlush(JsonUtil.toJson(restResult));
    }
}